package com.atgm.mall.gmmailproduct.service.impl;

import com.atgm.mall.gmmailproduct.dao.GameImagesDao;
import com.atgm.mall.gmmailproduct.entity.GameImagesEntity;
import com.atgm.mall.gmmailproduct.service.GameGoodsImagesService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class GameGoodsImagesServiceImpl extends ServiceImpl<GameImagesDao, GameImagesEntity> implements GameGoodsImagesService {

    @Override
    public List<GameImagesEntity> queryGoodsImagesbyGoodsId(Long goodsId) {
        QueryWrapper<GameImagesEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("goods_id", goodsId);
        List<GameImagesEntity> list = baseMapper.selectList(queryWrapper);
        return list;
    }
}
